package com.csdj.music.controller;

import com.csdj.music.service.impl.PhoneNumberSendCodeService;
import com.csdj.music.vo.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: PhoneNumberSendCodeController
 * @Author: ZouLi
 * @Description: 手机号发送验证码
 * @Date: 2023/3/15 15:18
 **/
@RestController
@Api(tags = "手机号验证码控制器")
public class PhoneNumberSendCodeController {
    /**
     注入业务层
     **/
    @Autowired
    private PhoneNumberSendCodeService phoneNumberSendCodeService;

    @PostMapping("/registCode")
    @ApiOperation(value = "发送验证码")
    public RespBean sendRegistCode(String phone, String status){
        return phoneNumberSendCodeService.sendRegistCode(phone, status);
    }
}
